package com.evaluation.kexingcp.psycho.evaluation.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.evaluation.kexingcp.common.data.datascope.DataScope;
import com.evaluation.kexingcp.psycho.evaluation.sys.controller.vo.UserReportVo;
import com.evaluation.kexingcp.psycho.evaluation.sys.entity.EvaluationTaskEntity;
import com.evaluation.kexingcp.psycho.evaluation.sys.entity.EvaluationTaskUserRelEntity;
import com.evaluation.kexingcp.psycho.evaluation.sys.mapper.EvaluationTaskMapper;
import com.evaluation.kexingcp.psycho.evaluation.sys.service.EvaluationTaskService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 任务名称
 *
 * @author pig
 * @date 2024-07-12 09:48:56
 */
@Service
public class EvaluationTaskServiceImpl extends ServiceImpl<EvaluationTaskMapper, EvaluationTaskEntity> implements EvaluationTaskService {



    @Override
    public List<EvaluationTaskEntity> getTaskAndScales() {
        return baseMapper.selectChildrenScales();
    }

    @Override
    public List<EvaluationTaskEntity> getTaskAndScales2() {
        return baseMapper.selectChildrenScales2();
    }

    @Override
    public List<Map<String, Object>> evaluationNumsByDate() {
        return baseMapper.selectEvaluationNumsByDate();
    }

    @Override
    public Map<String, Integer> userStatus() {
        return baseMapper.selectUserStatus();
    }

    @Override
    public List<UserReportVo> userDeptStatus() {
        return baseMapper.selectUserDeptStatus();
    }

    @Override
    public List<UserReportVo> userWarningByDept() {
        return baseMapper.selectUserWarningByDept();
    }

    @Override
    public IPage page(Page page, EvaluationTaskEntity entity) {
        return baseMapper.page(page, entity);
    }
}